package org.yjhking.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.yjhking.domain.MovieTicket;
import org.yjhking.dto.Movie;
import org.yjhking.dto.UserTicket;

import java.util.List;

/**
 * @author YJH
 */
@Mapper
public interface MovieTicketMapper {
    int deleteByPrimaryKey(Long id);
    
    int insert(MovieTicket record);
    
    int insertSelective(MovieTicket record);
    
    MovieTicket selectByPrimaryKey(Long id);
    
    int updateByPrimaryKeySelective(MovieTicket record);
    
    int updateByPrimaryKey(MovieTicket record);
    
    List<MovieTicket> selectAll();
    
    void movieTicket(UserTicket userTicket);
    
    List<Boolean> selectStockByUserIdAndMovieId(Movie movie);
    
    void setStatus(UserTicket userTicket);
}